echo '开始打包qiankun脚本！'
cd qiankun-base
npm run build

if [ $? -ne 0 ]; then
  echo 'qiankun-base打包失败'
  exit 0
else
  echo 'qiankun-base打包成功'
fi

cp -r ./web ../

cd ../vue-app1
npm run build

if [ $? -ne 0 ]; then
  echo 'vue-app1打包失败'
  exit 0
else
  echo 'vue-app1打包成功'
fi

cp -r ./vue1 ../web/

cd ../vue-app2
npm run build
if [ $? -ne 0 ]; then
  echo 'vue-app2打包失败'
  exit 0
else
  echo 'vue-app2打包成功'
fi

cp -r ./vue2 ../web/

echo '打包qiankun脚本完成！'
exit 0